package per.srp.demo.web.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.srp.demo.carLink.CarDataManager;
import per.srp.demo.carLink.entity.Car;
import per.srp.demo.web.controller.entity.ReturnPack;

import java.util.ArrayList;

@CrossOrigin(origins = "*")
@RestController
public class CarInfoController {
    @RequestMapping("/queryAllCar")
    public ReturnPack queryAllCar(){
        return new ReturnPack(true,"",CarDataManager.queryAll());
    }
}
